import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'


const routes: Array<RouteRecordRaw> = [
  {path:'/login',component:()=>import("@/views/login/index.vue")},
  {path:'/first', alias:'/',components:{
    default:()=>import('@/views/first/index.vue'),
    tabBar:()=>import('@/components/index.vue'),
  }},
  {path:'/foster',components:{
    default:()=>import('@/views/foster/index.vue'),
    tabBar:()=>import('@/components/index.vue')
  }},
  {path:'/shop',components:{
    default:()=>import('@/views/shop/index.vue'),
    tabBar:()=>import('@/components/index.vue')
  }},
  {path:'/my',components:{
    default:()=>import('@/views/my/index.vue'),
    tabBar:()=>import('@/components/index.vue')
  }},
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
